package com.wsc.personalblog.DTO;

import com.wsc.personalblog.entity.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;

@Data
@ToString
@NoArgsConstructor
public class UserDTO extends User {

    private String token;
    private String code;
    public UserDTO(Integer id,String username, String password, LocalDateTime createDate, String token,String userAvatar,String userQqMailbox) {
        super(id, username, password, createDate,userAvatar,userQqMailbox);
        this.token = token;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String Code) {
        this.code = Code;
    }
}
